class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			
			constraints {
				// apply constraints here
			}
		}	 
		"/"(view:"/index")
		"500"(view:'/error')
	}
	
//	static mappings = {
//		"/$controller/$id?"{
//		  action = [GET:"index", POST:"save", PUT:"update", DELETE:"remove"]
//		}
//		"/"(view:"/index")
//		"500"(view:'/error')
//	 }
}